package cn.zhizihua.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 购物车项搜索条件
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CartItemQuery extends BaseQuery{

    private Integer foodId;
    private Integer businessId;
    private Integer userId;

    private String foodName;  //多表联查搜索条件

    public CartItemQuery(Integer foodId, Integer businessId, Integer userId) {
        this.foodId = foodId;
        this.businessId = businessId;
        this.userId = userId;
    }

}
